progressbar: Apply style classes when setting direction
authorTimm Bäder <mail@baedert.org>
Sun, 14 May 2017 06:05:55 +0000 (08:05 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:13 +0000 (21:27 -0400)
We might have to change .top to .left etc. when changing the direction
of the progressbar.

gtk/gtkprogressbar.c

index b1449c08975dc64b626267719cf2628e08211791..3998f290d034283e928a54faef81d89bfa6ee430 100644 (file)
@@ -1132,6 +1132,7 @@ gtk_progress_bar_set_orientation (GtkProgressBar *pbar,
   priv->orientation = orientation;
 
   _gtk_orientable_set_style_classes (GTK_ORIENTABLE (pbar));
+  update_node_classes (pbar);
   gtk_widget_queue_resize (GTK_WIDGET (pbar));
 
   g_object_notify (G_OBJECT (pbar), "orientation");